Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore): adopt scientific python deprecation schedule #1768

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

ilan-gold
Copy link
Contributor

@ilan-gold ilan-gold commented Nov 15, 2024

This PR forces us to adopt the scientific python deprecation schedule as much as possible. It also cleans up our use of spmatrix/sparray because of the bumping of scipy.sparse so that handling sparray is always done via a concrete class

@ilan-gold ilan-gold mentioned this pull request Nov 15, 2024
3 tasks
@ilan-gold ilan-gold added this to the 0.12.0 milestone Nov 15, 2024
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

Attention: Patch coverage is 96.22642% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.54%. Comparing base (8a1ba88) to head (3351c43).

Files with missing lines Patch % Lines
src/anndata/_core/merge.py 94.44% 1 Missing ⚠️
src/anndata/tests/helpers.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1768      +/-   ##
==========================================
- Coverage   86.13%   83.54%   -2.59%     
==========================================
  Files          41       40       -1     
  Lines        6277     6231      -46     
==========================================
- Hits         5407     5206     -201     
- Misses        870     1025     +155     
Files with missing lines Coverage Δ
src/anndata/__init__.py 100.00% <100.00%> (ø)
src/anndata/_core/aligned_mapping.py 93.41% <100.00%> (-0.03%) ⬇️
src/anndata/_core/anndata.py 81.63% <100.00%> (ø)
src/anndata/_core/index.py 93.60% <100.00%> (ø)
src/anndata/_core/raw.py 75.88% <100.00%> (-4.26%) ⬇️
src/anndata/_core/sparse_dataset.py 92.14% <100.00%> (ø)
src/anndata/_io/h5ad.py 92.68% <ø> (ø)
src/anndata/_io/specs/methods.py 88.36% <100.00%> (-0.41%) ⬇️
src/anndata/_io/utils.py 76.15% <100.00%> (-0.19%) ⬇️
src/anndata/_settings.py 93.52% <100.00%> (-0.60%) ⬇️
... and 4 more

... and 3 files with indirect coverage changes

@@ -57,7 +57,7 @@ jobs:
set -e
uv pip install --system --compile tomli packaging
deps=`python3 ci/scripts/min-deps.py pyproject.toml --extra dev test`
uv pip install --system --compile $deps pytest-cov "anndata @ ."
uv pip install --system --compile $deps pytest-cov "anndata[test,dev] @ ."
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flying-sheep I think this is a bug, no? The min-deps are created without respect for upper bounds so the constraints can end up not including the upper bounds because the min-deps script doesn't care about it? I think this is the correct fix given the fact that the script is called "min-deps" and not "min-deps-with-upper-bound" but maybe I'm off

@ilan-gold ilan-gold marked this pull request as ready for review February 3, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(chore): clean up use of spmatrix and sparray
1 participant